package com.ruoyi.answer.domain.bo;

import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;

import java.util.Date;

import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 选择题选项业务对象 exam_question_choice
 *
 * @author ruoyi
 * @date 2022-08-19
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class ExamQuestionChoiceBo extends BaseEntity {

    /**
     * 自动编号
     */
    @NotNull(message = "自动编号不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 所属题目id
     */
    @NotNull(message = "所属题目id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long questionId;

    /**
     * 选项（A,B,C...）
     */
    @NotBlank(message = "选项（A,B,C...）不能为空", groups = { AddGroup.class, EditGroup.class })
    private String choiceName;

    /**
     * 选项描述
     */
    @NotBlank(message = "选项描述不能为空", groups = { AddGroup.class, EditGroup.class })
    private String choiceTitle;


}
